package it.lefo.dateReminder.service;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class StartupReceiver extends BroadcastReceiver {
	@Override
	public void onReceive(Context context, Intent intent) {		
		Log.i(StartupReceiver.class.getSimpleName(), "onReceive Start"); 
		if( "android.intent.action.BOOT_COMPLETED".equals(intent.getAction())) {
			
			Intent serviceIntent = new Intent();
			serviceIntent.setAction("it.lefo.dateReminder.service.ReminderService");
			context.startService(serviceIntent);
		}
		Log.i(StartupReceiver.class.getSimpleName(), "onReceive End"); 
	}
}
